//
//  PHAssetModel.h
//  materialsDemo
//
//  Created by limaomao on 16/10/25.
//  Copyright © 2016年 limaomao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Photos/Photos.h>
#import <PhotosUI/PhotosUI.h>
@interface PHAssetModel : NSObject

@property (nonatomic,strong) UIImage *thumbnail;//缩略图
@property (nonatomic,copy) NSURL *imageURL;//原图url
@property (nonatomic,copy) NSString * data;
@property (nonatomic,strong)PHAsset *  asset;
@property (nonatomic, assign) NSTimeInterval duration;
@property (nonatomic,assign) NSInteger isImage;//是否是图片,音频,视频
@property (nonatomic, assign) NSUInteger pixelWidth;
@property (nonatomic, assign) NSUInteger pixelHeight;
@property (nonatomic, assign)UIImage * imagePhoto;
/*!
 *  @brief 视频资源的时间
 */
@property (nonatomic,assign)  CMTime      mode_CMTime;


/*!
 *  @brief 获取到的文件的URL路径
 */
@property (nonatomic,strong) NSString      * mode_fileUrl;
/*!
 *  @brief 获取到的文件的名字
 */
@property (nonatomic,strong) NSString      * mode_fileName;





@end
